///@file Bowl.h
///@brief Implementation of the class representing a bowl
///@author Arnaud Duval
///@version 0.0
///@date 2010/03/03

#include "../include/Bowl.h"
#include <cmath>

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

///@brief Default constructor
Bowl::Bowl()
{

}

///@brief Constructor with arguments
///@param p Point corresponding to the center of the bowl
///@param r radius of the bawol
Bowl::Bowl(Point p, double r)
{
	center = p;
	radius = r;
}

///@brief Destructor
Bowl::~Bowl()
{

}

///@brief Compute volume value
double Bowl::value()
{
	return (4./3.)*M_PI*pow(radius, 3.);
}

